-- GENERATED SPELL FOR [Dark Iron Dwarf] --


function spell0_1051(pUnit, Event) --@Gift of Ragnaros,Self--
pUnit:FullCastSpellOnTarget(7891,pUnit)
pUnit:RegisterEvent('Sorts_1051', 637, 1)
end

function Sorts_1051(pUnit, Event)
local choix_sorts_1051 = math.random(0, 0)
if choix_sorts_1051 == 0 then
pUnit:RegisterEvent('spell0_1051', 1, 1)
end
end

function mob1051_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1051', math.random(1500, 3000), 1)
end

function mob1051_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1051_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1051_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1051, 1, 'mob1051_Action')
RegisterUnitEvent(1051, 2, 'mob1051_Leave')
RegisterUnitEvent(1051, 3, 'mob1051_Kill')
RegisterUnitEvent(1051, 4, 'mob1051_Die')
